import request from '@/utils/request'

// 查询气瓶信息列表
export function listCylinders(query) {
  return request({
    url: '/system/cylinders/list',
    method: 'get',
    params: query
  })
}

// 查询气瓶信息详细
export function getCylinders(id) {
  return request({
    url: '/system/cylinders/' + id,
    method: 'get'
  })
}

// 新增气瓶信息
export function addCylinders(data) {
  return request({
    url: '/system/cylinders',
    method: 'post',
    data: data
  })
}

// 修改气瓶信息
export function updateCylinders(data) {
  return request({
    url: '/system/cylinders',
    method: 'put',
    data: data
  })
}

// 删除气瓶信息
export function delCylinders(id) {
  return request({
    url: '/system/cylinders/' + id,
    method: 'delete'
  })
}
